package com.woniu.payservice.dao;

import com.woniu.payservice.entity.Orders;
import org.apache.ibatis.annotations.Param;
import java.util.List;

public interface OrdersDao {
    Orders queryById(Integer id);

    List<Orders> queryAllByLimit(@Param("offset") int offset, @Param("limit") int limit);
    
    List<Orders> findAll();

    List<Orders> queryAll(Orders orders);

    int insert(Orders orders);

    int update(Orders orders);

    int deleteById(Integer id);

    void updateOstateByOnumber(Orders orders);

    String queryPayNumberByOrderNumber(String orderNumber);

    List<Orders> queryOrdersByStatus(Integer i);
}